/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package GUI.Utils;

import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.swing.JTable;
import javax.swing.JTextArea;
import javax.swing.table.TableModel;

/**
 *
 * @author CarLita
 */
public class Utils {

    public static boolean validarAlfaNumerico(String text) {
        
           // [A-Za-z0-9]+@[A-Za-z0-9]+.[A-Za-z]{2,3}
        Pattern p = Pattern.compile("[^A-Za-z0-9.,\\s-~#áéíóúÁÉÍÓÚ]+");
        Matcher m = p.matcher(text);
        StringBuffer sb = new StringBuffer();
        boolean resultado = m.find();
        boolean ok = true;
        while(resultado) {
            ok = false;
            break;
        }
        return ok;
    }

    public void llenarTabla(List resultList, JTable tabla){

    }

}
